// let [x, y] = [1,2,3];
//右边必须是可遍历的结构
let [x,y,z] = new Set(['a', 'b', 'c']);
console.log(x,y,z)

//对象的解构赋值
let {foo, bar} = {foo: 'aaa', bar: 'bbb'};
// let {log, sin, cos} = Math;
let {log} = console;
log("hello")